import Vue from 'vue'
import Vonic from 'vonic'
import Api from './core/api/api.js'
// Page Components
import 'lib-flexible/flexible'
import FastClick from 'fastclick'
import './style/main.less'
import './core'
import './assets/iconfont/iconfont.css'
FastClick.attach(document.body);

// Route
import Vbsc from './view/wbsc/Vbsc.vue'
import Statement from './view/statement/Statement.vue'
import Edition from './view/edition/Edition.vue'
import messageDetail from './view/messageDetail/messageDetail.vue'

window.Api = Api;
window.$Vue = Vue;
// Routes
const routes = [
  { path: '/vbsc', component: Vbsc },
  { path: '/statement', component: Statement },
  { path: '/edition', component: Edition },
  { path: '/messageDetail', component: messageDetail }
]
Vue.use(Vonic.app, {
  routes: routes
})
